import request from '@/utils/request'

//管理端查询患者信息
export function listPatient(val) {
    return request({
        url: '/med-admin-user/user/list',
        method: 'get',
        params: val
    })
}

//管理端逻辑删除患者
export function DeletePatient(userId) {
    return request({
        url: '/med-admin-user/user/delete',
        method: 'get',
        params: { userId }
    })
}

//管理端重置密码
export function ResetPatient(userId) {
    return request({
        url: '/med-admin-user/user/reset',
        method: 'get',
        params: { userId }
    })
}

//管理修改用户状态
export function UpdateStatus(userId) {
    return request({
        url: '/med-admin-user/user/update',
        method: 'get',
        params: { userId }
    })
}

//查询患者的就诊记录
export function SelectRecord(userId) {
    return request({
        url: '/med-admin-user/user/select',
        method: 'get',
        params: { userId }
    })
}
